package com.example.demo.user;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import java.math.BigDecimal;

/**
 * 类描述：
 *
 * @author: huxinchao  38653
 * Create Date：
 * <p>
 * History:      huxinchao   Created.
 */
public class UserVo {
//    @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT,pattern = "##.00")
//    @JsonFormat(shape = JsonFormat.Shape.NUMBER)
    private BigDecimal xx;
//    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "#0.00")
    @JsonSerialize(using = DataSerializerUtils.class)
    public BigDecimal getXx() {
        return xx;
    }

    private Integer x2;

    public void setXx(BigDecimal xx) {
        this.xx = xx;
    }

    public Integer getX2() {
        return x2;
    }

    public void setX2(Integer x2) {
        this.x2 = x2;
    }
}
